package 工厂模式;

public class Test {
    public static void main(String[] args) {
        Book book = BookFactory.information(BookFactory.TYPE_CHINESE);
        Book book1 = BookFactory.information(BookFactory.TYPE_MATH);
        Book book2 = BookFactory.information(BookFactory.TYPE_ENGLISH);
        Book book3 = BookFactory.information(BookFactory.TYPE_PHYSICS);

        book.show();
        book1.show();
        book2.show();
        book3.show();
    }
}
